From 52c05ba5f2ea79e9be7948605f1388603346db58 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Wed, 31 Jul 2013 17:35:45 +0000 Subject: [PATCH] Whack two unused functions from util. --- gpsbabel/defs.h | 2 -- gpsbabel/util.cc | 21 --------------------- 2 files changed, 23 deletions(-) diff --git a/gpsbabel/defs.h b/gpsbabel/defs.h index 6e6afac54..0cd81acf2 100644 --- a/gpsbabel/defs.h +++ b/gpsbabel/defs.h @@ -968,8 +968,6 @@ void debug_mem_close(); #endif /* DEBUG_MEM */ FILE* xfopen(const char* fname, const char* type, const char* errtxt); -void xfprintf(const char* errtxt, FILE* stream, const char* format, ...); -void xfputs(const char* errtxt, const char* s, FILE* stream); int case_ignore_strcmp(const char* s1, const char* s2); int case_ignore_strncmp(const char* s1, const char* s2, int n); diff --git a/gpsbabel/util.cc b/gpsbabel/util.cc index b89108391..596bc5820 100644 --- a/gpsbabel/util.cc +++ b/gpsbabel/util.cc @@ -278,27 +278,6 @@ xfopen(const char *fname, const char *type, const char *errtxt) return f; } -void -xfprintf(const char *errtxt, FILE *stream, const char *format, ...) -{ - va_list ap; - va_start(ap, format); - if (vfprintf(stream, format, ap) < 0) { - fatal("%s writing output file. Error was '%s'.\n", - errtxt, strerror(errno)); - } - va_end(ap); -} - -void -xfputs(const char *errtxt, const char *s, FILE *stream) -{ - if (fputs(s, stream) < 0) { - fatal("%s Writing output file. Error was '%s'.\n", - errtxt, strerror(errno)); - } -} - /* * Allocate a string using a format list with optional arguments * Returns -1 on error. -- 2.30.2